package uk.ac.bath.machine.tristate;
import uk.ac.bath.base.Value;
import java.io.*;

public class On extends ConstantOperator {

    public void eval(Value result) {
	result.set(1); throw new UnsupportedOperationException("Not supported yet.");
    }

    public int getStateSize() {
        return 1;
    }

    public int nIn() {
	return 0;
    }
    public int nOut() {
	return 1;
    }

    public Object clone() {
        return this;
    }
    public void toString(StringWriter w) {
        w.write("On ");
    }

}

